package service

import (
	"context"
	"go-admin/global/db"
	myDao "go-admin/internal/dao"
)

type Service struct {
	ctx context.Context
	dao *myDao.Dao
}

func New(ctx context.Context) Service {
	svc := Service{ctx: ctx}
	svc.dao = myDao.New(db.DBEngine)
	return svc
}
